package com.yzkj.cpjxc.business.domain;

import com.yzkj.cpjxc.business.framework.common.ConstantParam;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.type.Alias;

/**
 * 系统权限展示VO
 */
@Alias("SysAuthorityShowVo")
public class SysAuthorityShowVo extends SysAuthority {

	private static final long serialVersionUID = 4562615209890136567L;

	/**
	 * 父级授权名称
	 */
	private String parentAuthorityName;

	/**
	 * 权限类型名称
	 */
	private String authorityTypeName;

	/**
	 * 权限状态名称
	 */
	private String statusName;

	public String getParentAuthorityName() {
		return parentAuthorityName;
	}

	public void setParentAuthorityName(String parentAuthorityName) {
		this.parentAuthorityName = parentAuthorityName;
	}

	public String getAuthorityTypeName() {
		if (StringUtils.isBlank(this.getAuthorityType())) {
			return "";
		}
		return ConstantParam.authTypeMap.get(this.getAuthorityType());
	}

	public void setAuthorityTypeName(String authorityTypeName) {
		this.authorityTypeName = authorityTypeName;
	}

	public String getStatusName() {
		if (StringUtils.isBlank(getStatus())) {
			return "";
		}
		return ConstantParam.statusMap.get(this.getStatus());
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
}
